package com.my.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

//开启websocket支持
@Configuration
public class WebSocketConfig {

    @Bean(name = "serverEndpointExporter")
    public ServerEndpointExporter createServerEndpointExporter(){
        return new ServerEndpointExporter();
    }

}
